home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / Bars.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.7 KB  |  75 lines  |  [TEXT/CWIE]

  1. /* Bars.h */
  2.  
  3. #pragma once
  4.  
  5. #include "AMWindow.h"
  6.  
  7. struct AMDoc;
  8. struct DDocData;
  9. struct EverythingEngine;
  10.  
  11. //----------
  12. struct Bars {
  13.     AMWindow        super;
  14.  
  15.     DDocData*        mData;
  16.     ControlHandle    mBarsHandle;
  17.     ControlHandle    mScrollBarsHandle;
  18.     ControlHandle    mStandard4Handle;
  19.     ControlHandle    mGraphic4Handle;
  20.     ControlHandle    mSliderHandle;
  21.     ControlHandle    mTickMarksHandle;
  22.     ControlHandle    mNonDirectionalHandle;
  23.     ControlHandle    mLittleArrowsHandle;
  24.     ControlHandle    mSpinnerHandle;
  25.     ControlHandle    mVolumeControlHandle;
  26.     ControlHandle    mJimSSliderHandle;
  27.     ControlHandle    mProgressBarsHandle;
  28.     ControlHandle    mStandard5Handle;
  29.     ControlHandle    mIndeterminateHandle;
  30.     ControlHandle    mChasingArrowsHandle;
  31.     ControlHandle    mRectangleHandle;
  32.     ControlHandle    mRoundRectHandle;
  33.     ControlHandle    mBarberPoleHandle;
  34.     ControlHandle    mRoundBarberHandle;
  35. };
  36. typedef struct Bars Bars;
  37.  
  38. //----------
  39. Bars*        NewBars ();
  40. void    DeleteBars        (Bars*        window);
  41.  
  42. //----------
  43. //static:
  44. void    Bars_Create    (AMDoc*            inDoc,
  45.                              DDocData*        inData);
  46.  
  47. //public:
  48. void    Bars_Init        (Bars*    self);
  49. void    Bars_Free        (Bars*    self);
  50.  
  51. void    Bars_Open        (Bars*    self,
  52.                              AMDoc*            inDoc,
  53.                              DDocData*        inData);
  54. void    Bars_Close    (Bars*    self);
  55.  
  56. void    Bars_Track        (Bars*    self,
  57.                                  ControlHandle    whichControl,
  58.                                   short             whichPart,
  59.                                  Point            where);
  60. void    Bars_MouseIn        (Bars*    self,
  61.                                  Point            where,
  62.                                  short            modifiers);
  63. void    Bars_TypeIn        (Bars*    self,
  64.                                  char            ch);
  65. void    Bars_ExitCurField    (Bars*    self);
  66. void    Bars_DataChanged    (Bars*    self,
  67.                                  long            inDataID);
  68. void    Bars_Resize        (Bars*    self);
  69. void    Bars_Scroll        (Bars*    self,
  70.                                  short            newValue,
  71.                                  short            oldValue);
  72.  
  73. Boolean        Bars_DoCommand    (Bars*    self,
  74.                                      long            inCommand);
  75.